import request from '@/utils/request'

export default{
  getCourseList(current, limit, searchObj) {
    return request({
      url: '/eduservice/coursefront/getFrontCourseList/' + current + '/' + limit,
      method: 'post',
      data: searchObj
    })
  },
  //
  getAllSubject() {
    return request({
      url: '/eduservice/subject/getAllSubject',
      method: 'get'
    })
  },

  // 课程详情
  getCourseInfo(courseId) {
    return request({
      url: '/eduservice/coursefront/getFrontCourseInfo/' + courseId,
      method: 'get'
    })
  }

}
